//
//  UIFont+Addition.h
//  YSProject
//
//  Created by 昱胜 on 2021/12/21.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIFont (Addition)

/** 默认字体 PingFangSC-Regular */
+ (UIFont *)ys_fontWithSize:(CGFloat )size;
/**  PingFangSC-Semibold */
+ (UIFont *)ys_boldFontWithSize:(CGFloat )size;
/**  PingFangSC-Medium */
+ (UIFont *)ys_mediumFontWithSize:(CGFloat )size;
/**  bahnschrift */
+ (UIFont *)ys_bahnschriftFontWithSize:(CGFloat )size;

/**
 设置字体

 @param name 字体名字
 @param size 字体大小
 @return font
 */
+ (UIFont *)ys_mainFontWithName:(NSString *)name Size:(CGFloat )size;

+ (void)allFontFamily;

@end

NS_ASSUME_NONNULL_END
